import { developmentUrl } from "../config/env";
import request from "../config/axios";


export function tree() {
  return request({
    url: `${developmentUrl}/dept/tree`,
    method: 'get',
  })
}

export function list() {
  return request({
    url: `${developmentUrl}/dept/list`,
    method: 'get',
  })
}

export function save(params) {
  return request({
    url: `${developmentUrl}/dept`,
    method: 'post',
    params: params
  })
}

export function del(id) {
  return request({
    url: `${developmentUrl}/dept`,
    method: 'get',
    params: {
      id: id
    }
  })
}
